<?php
/*
handles all ajax requests
WARNING: COULD BE VERY INSECURE. USE FOR TESTING ONLY

@author kamasheto
*/
include('functions.php');
include('logic.php');

// connect to db and like, yeah
mysql_connect('localhost', 'root', '');
mysql_select_db('el7a2ony');

$in = clean($_REQUEST); // get all request vars (_POST and _GET combined)

switch ($in['action']) {
	case 'quickreport':
		quickreport($in['lat'], $in['lng']);
		break;
	
	case 'requests':
		get_requests($in['lat'], $in['lng']);
		break;
}


